package com.lxx.common;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体基类，每个子类对应一个持久化的对象，即数据库中的表
 * @author linxinxing
 *
 * @param <K> 主键类型
 */
public class BaseEntity<K> implements Serializable{

	private static final long serialVersionUID = 1558619063543883411L;
	
	protected K id;
	
	protected Date createTime;
	
	protected Date updateTime;
	
	protected Boolean delFlag;

	public K getId() {
		return id;
	}

	public void setId(K id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}
	
}
